package com.atguigu.yygh.hosp.repository;

import com.atguigu.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author ybl
 * @version 1.9
 * @date 2021/5/17 9:10
 */
@Repository
public interface HospitalRepository extends MongoRepository<Hospital,String> {

  Hospital getHospitalByHoscode(String hoscode);// 根据hoscode查找

  // 根据医院名称关键字搜索医院列表
  List<Hospital> findHospitalByHosnameLike(String hosName);
}
